/** 封装axios */
import axios from "axios"

const instance = axios.create({
  baseURL: "http://localhost:3000",
  timeout: 60000
})

instance.interceptors.request.use(request => {
  return request
})

instance.interceptors.response.use(response => {
  return response.data
})

export default instance